﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// IsAdmin 的摘要说明
/// </summary>
public class IsAdmin
{
	public static void Admin()
   {
            //查看是否为超级管理员
       if (HttpContext.Current.Session["Admin"] != "yes")
       {
           HttpContext.Current.Response.Write(@"<script>alert('你还没有登录或登录超时！');window.location.href='login.aspx';</script>");
       }      
               
    }
}
